package com.ruoyi.mixuebingcheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址管理业务对象 address_book
 *
 * @author ruoyi
 * @date 2023-10-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AddressBookBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 收货人
     */
    @NotBlank(message = "收货人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String consignee;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String detail;

    /**
     * 标签
     */
    @NotBlank(message = "标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 默认 0 否 1是
     */
    @NotNull(message = "默认 0 否 1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDefault;

    /**
     * 是否删除
     */
    @NotNull(message = "是否删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isDeleted;

    /**
     * 创建用户id
     */
    @NotNull(message = "创建用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long createUser;

    /**
     * 修改用户id
     */
    @NotNull(message = "修改用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long updateUser;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaCode;


}
